using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_XuatKhoBanGiaoManagerBase
    {
        public TBL_XuatKhoBanGiaoManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity Insert(TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity Update(TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity UpdateWithCondition(TBL_XuatKhoBanGiaoEntity obj,TBL_XuatKhoBanGiaoEntity objCond)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_XuatKhoBanGiaoEntity Delete(TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_XuatKhoBanGiaoEntity DeleteWithCondition(TBL_XuatKhoBanGiaoEntity objCond)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByGhiChu (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"GhiChu");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien GhiChu 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByGhiChu (string GhiChu )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.GhiChu = GhiChu;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"GhiChu");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaDXCungUng (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaPB (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaPB (string MaPB )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPB = MaPB;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaPX (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPX");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPX 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByMaPX (string MaPX )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"MaPX");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNgayXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NgayXuatBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayXuatBanGiao 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNgayXuatBanGiao (string NgayXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NgayXuatBanGiao = NgayXuatBanGiao;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NgayXuatBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNguoiBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NguoiBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiBanGiao 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNguoiBanGiao (string NguoiBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiBanGiao = NguoiBanGiao;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NguoiBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNguoiNhanBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNguoiNhanBanGiao (string NguoiNhanBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNoiDungXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NoiDungXuatBanGiao");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NoiDungXuatBanGiao 
        /// </summary>
        /// <returns>TBL_XuatKhoBanGiaoEntity</returns>
        public TBL_XuatKhoBanGiaoEntity DeleteByNoiDungXuatBanGiao (string NoiDungXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NoiDungXuatBanGiao = NoiDungXuatBanGiao;  
            return (TBL_XuatKhoBanGiaoEntity)Adapter.DeleteByField(obj,"NoiDungXuatBanGiao");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_XuatKhoBanGiaoEntity Select(TBL_XuatKhoBanGiaoEntity obj)
        { 
            return (TBL_XuatKhoBanGiaoEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_XuatKhoBanGiaoEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_XuatKhoBanGiaoEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectAllLST()
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_XuatKhoBanGiaoEntity()),new TBL_XuatKhoBanGiaoEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_XuatKhoBanGiaoEntity(),option),new TBL_XuatKhoBanGiaoEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"GhiChu");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"GhiChu",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByGhiChuLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByGhiChuLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"GhiChu",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (string GhiChu )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.GhiChu = GhiChu;  
            return Adapter.SelectByField(obj,"GhiChu");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByGhiChu (string GhiChu, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.GhiChu = GhiChu;  
            return Adapter.SelectByField(obj,"GhiChu",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByGhiChuLST (string GhiChu )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.GhiChu = GhiChu;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien GhiChu duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByGhiChuLST (string GhiChu, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.GhiChu = GhiChu;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"GhiChu",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaDXCungUngLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaDXCungUngLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaDXCungUngLST (string MaDXCungUng )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaDXCungUngLST (string MaDXCungUng, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPBLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPBLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaPB",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPBLST (string MaPB )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPBLST (string MaPB, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaPX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaPX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPXLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPXLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaPX",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (string MaPX )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return Adapter.SelectByField(obj,"MaPX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPX (string MaPX, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return Adapter.SelectByField(obj,"MaPX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPXLST (string MaPX )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByMaPXLST (string MaPX, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.MaPX = MaPX;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPX",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayXuatBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayXuatBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNgayXuatBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayXuatBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNgayXuatBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayXuatBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayXuatBanGiao (string NgayXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NgayXuatBanGiao = NgayXuatBanGiao;  
            return Adapter.SelectByField(obj,"NgayXuatBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayXuatBanGiao (string NgayXuatBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NgayXuatBanGiao = NgayXuatBanGiao;  
            return Adapter.SelectByField(obj,"NgayXuatBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNgayXuatBanGiaoLST (string NgayXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NgayXuatBanGiao = NgayXuatBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayXuatBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNgayXuatBanGiaoLST (string NgayXuatBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NgayXuatBanGiao = NgayXuatBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayXuatBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiBanGiao (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiBanGiao (string NguoiBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiBanGiao = NguoiBanGiao;  
            return Adapter.SelectByField(obj,"NguoiBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiBanGiao (string NguoiBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiBanGiao = NguoiBanGiao;  
            return Adapter.SelectByField(obj,"NguoiBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiBanGiaoLST (string NguoiBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiBanGiao = NguoiBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiBanGiaoLST (string NguoiBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiBanGiao = NguoiBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiNhanBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiNhanBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiNhanBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (string NguoiNhanBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiNhanBanGiao (string NguoiNhanBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return Adapter.SelectByField(obj,"NguoiNhanBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiNhanBanGiaoLST (string NguoiNhanBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiNhanBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNguoiNhanBanGiaoLST (string NguoiNhanBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NguoiNhanBanGiao = NguoiNhanBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiNhanBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return Adapter.SelectByField(obj,"NoiDungXuatBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungXuatBanGiao (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NoiDungXuatBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNoiDungXuatBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungXuatBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNoiDungXuatBanGiaoLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NoiDungXuatBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungXuatBanGiao (string NoiDungXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NoiDungXuatBanGiao = NoiDungXuatBanGiao;  
            return Adapter.SelectByField(obj,"NoiDungXuatBanGiao");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNoiDungXuatBanGiao (string NoiDungXuatBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NoiDungXuatBanGiao = NoiDungXuatBanGiao;  
            return Adapter.SelectByField(obj,"NoiDungXuatBanGiao",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNoiDungXuatBanGiaoLST (string NoiDungXuatBanGiao )
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NoiDungXuatBanGiao = NoiDungXuatBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungXuatBanGiao"),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NoiDungXuatBanGiao duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectByNoiDungXuatBanGiaoLST (string NoiDungXuatBanGiao, SelectOptions option)
        { 
            TBL_XuatKhoBanGiaoEntity obj = new TBL_XuatKhoBanGiaoEntity();
            obj.NoiDungXuatBanGiao = NoiDungXuatBanGiao;  
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NoiDungXuatBanGiao",option),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectWithConditionLST (TBL_XuatKhoBanGiaoEntity obj)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_XuatKhoBanGiaoEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_XuatKhoBanGiaoEntity></returns>
        public List<TBL_XuatKhoBanGiaoEntity> SelectWithConditionLST (TBL_XuatKhoBanGiaoEntity obj,SelectOptions option)
        { 
            return  (List<TBL_XuatKhoBanGiaoEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_XuatKhoBanGiaoEntity());
        }

}
}
